<div class="headbg">
    <?php
//未登录显示的head
if(!$cfg_ml->IsLogin()) {
    ?>
    <div id="headTop" class="aGray grayA">
        <div id="topBar">
            <ul class="userMenu green">
                <li><a href="../" title="网站主页">网站主页</a></li>
                <li><a href="../member/index_do.php?fmdo=user&dopost=regnew" title="注册">注册</a></li>
                <li><a href="../member/login.php" title="登录">登录</a></li>
                <li class="help"><a href="http://help.dedecms.com" title="DEDECMS 帮助中心">帮助</a></li>
            </ul>
    <span>
    <script type="text/javascript">
        var now = (new Date()).getHours();
        if (now > 0 && now <= 6) {
            document.write("午夜好，");
        } else if (now > 6 && now <= 11) {
            document.write("早上好，");
        } else if (now > 11 && now <= 14) {
            document.write("中午好，");
        } else if (now > 14 && now <= 18) {
            document.write("下午好，");
        } else {
            document.write("晚上好，");
        }
    </script>
    <i>游客</i>你可以选择到</span></div>
    </div>
    <?php
}
//登录后显示的head
else {
?>
    <div id="headTop" class="aGray grayA">
        <div id="topBar">
            <ul class="userMenu green">
                <li><a href="../" title="网站主页">网站主页</a></li>
                <li><a href="../member/edit_baseinfo.php" title="我的资料">我的资料</a></li>
                <li><a href="<?php echo $myurl; ?>" title="我的空间">我的空间</a></li>
                <li><a href="../member/index_do.php?fmdo=login&dopost=exit" title="注销">注销</a></li>
            </ul>
    <span>
    <script type="text/javascript">
        var now = (new Date()).getHours();
        if (now > 0 && now <= 6) {
            document.write("午夜好，");
        } else if (now > 6 && now <= 11) {
            document.write("早上好，");
        } else if (now > 11 && now <= 14) {
            document.write("中午好，");
        } else if (now > 14 && now <= 18) {
            document.write("下午好，");
        } else {
            document.write("晚上好，");
        }
    </script>
    <i><?php echo $cfg_ml->M_UserName?></i></span></div>
    </div>
    <?php
}
?>
</div>
<!--end headbar-->

<!-- 头部 begin -->
<div id="header">
    <div id="header_bg2"><a href="index.php?uid={dede:var.userid_e /}" id="logo2"></a> <span class="sitename">{dede:var.uname /}官方网站</span></div>
    <div id="nav">
        <ul id="navbar2">
            <li><a href="index.php?uid={dede:var.userid_e /}">首页</a></li>
            <li><a href="index.php?uid={dede:var.userid_e /}&action=infos">艺术家介绍</a></li>
            <li><a href="index.php?uid={dede:var.userid_e /}&action=article&typeid=36">作品</a></li>
            <li><a href="index.php?uid={dede:var.userid_e /}&action=aucinfo">拍卖行情</a></li>
            <li><a href="index.php?uid={dede:var.userid_e /}&action=authorview">艺术家观点</a></li>
            <li><a href="index.php?uid={dede:var.userid_e /}&action=books&typeid=37">出版著作</a></li>
            <li><a href="index.php?uid={dede:var.userid_e /}&action=guestbook">留言板</a></li>
        </ul>
    </div>
    <div id="slider">
        <a href="#"><img src="{dede:var.banner/}" alt=""/></a>
    </div>
</div>